/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package com.insurance.cis.models;

import java.util.Objects;

/**
 *
 * @author TruongLQ
 */
public class Group {
    Integer id;
    String groupDesc;
    public Group (Integer id, String desc) {
        this.id = id;
        this.groupDesc = desc;
    }

    public String getGroupDesc() {
        return groupDesc;
    }

    @Override
    public String toString() {
        return groupDesc;
    }

    public Integer getId() {
        return id;
    }

    @Override
    public int hashCode() {
        int hash = 5;
        hash = 19 * hash + Objects.hashCode(this.groupDesc);
        return hash;
    }

    @Override
    public boolean equals(Object obj) {
        if (obj == null) {
            return false;
        }
        if (getClass() != obj.getClass()) {
            return false;
        }
        final Group other = (Group) obj;
        if (!Objects.equals(this.groupDesc, other.groupDesc)) {
            return false;
        }
        return true;
    }

    
}
